Advertisement
Guest User

LinuxCNC PyVCP showing velocity in units per minute

a guest
Mar 30th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ~~~ in [HAL] section of .ini ~~~
  2.  
  3. POSTGUI_HALFILE = custom_panel.hal
  4.  
  5. ~~~ in [DISPLAY] section of .ini ~~~
  6.  
  7. PYVCP = custom_panel.xml
  8.  
  9. ~~~ custom_panel.hal ~~~
  10.  
  11. loadrt scale names=scale_vel
  12. addf scale_vel servo-thread
  13. setp scale_vel.gain 60
  14. net disp-velocity-per-second motion.current-vel => scale_vel.in
  15. net disp-velocity-per-minute scale_vel.out => pyvcp.velocity
  16.  
  17. ~~~ custom_panel.xml ~~~
  18.  
  19. <pyvcp>
  20. <label>
  21. <text>"Velocity (units/minute):"</text>
  22. </label>
  23. <bar>
  24. <halpin>"velocity"</halpin>
  25. <max_>600</max_>
  26. </bar>
  27. </pyvcp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement